import java.sql.SQLOutput;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int count = 3;
        Scanner in = new Scanner(System.in);
        while (count != 0){
            System.out.println("请输入你的密码：");
            String password = in.nextLine();
            if(password.equals("2580")){
                System.out.println("登录成功");
                break;
            }else{
                count--;
                System.out.println("你还有" + count +"次机会");
            }
        }
    }
}
